package cn.schoolwow.quickdao.module.database.dml.common.service;

import cn.schoolwow.quickdao.module.database.dml.instance.flow.common.SetInstanceEntityFlow;
import cn.schoolwow.quickdao.module.database.dml.instance.flow.common.filter.FilterInstanceByConstraintFlow;
import cn.schoolwow.quickdao.module.database.dml.instance.flow.common.filter.FilterInstanceBySameUniqueKeyFlow;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;

public class GetInstanceReasonMapCompositeBusiness implements CompositeBusinessFlow {
    @Override
    public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
        quickFlowExecutor.next(new SetInstanceEntityFlow())
                .next(new FilterInstanceBySameUniqueKeyFlow())
                .next(new FilterInstanceByConstraintFlow());
    }

    @Override
    public String name() {
        return "获取不符合约束的实例列表";
    }
}
